<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Node/RabbitMq</title>
  <link href="//cdn.bootcss.com/pure/0.6.0/buttons-min.css" rel="stylesheet">
</head>
<body>
  <button class="pure-button pure-button-primary" data-email="1071766043@qq.com">A Primary Button</button>
  MAILTO → `1071766043@qq.com`
  <br>
  <br>
  <button class="pure-button pure-button-primary" data-email="2577792479@qq.com">A Primary Button</button>
  MAILTO → `2577792479@qq.com`
  <br>
  <br>
  <button class="pure-button pure-button-primary" data-email="sshflgm@gmail.com">A Primary Button</button>
  MAILTO → `sshflgm@gmail.com`
  <br>
  <br>
  <button class="pure-button pure-button-primary" data-email="sshsfl@yeah.net">A Primary Button</button>
  MAILTO → `sshsfl@yeah.net`
  <script type="text/javascript" src="/node_modules/jquery/dist/jquery.min.js"></script>
  <script type="text/javascript">
    $('button').click(function() {
      var email = $(this).data('email')
      console.log(email)
      $.post('/send/emails', { email: email }, function(data) {
        console.log(data)
      })
    })
  </script>
</body>
</html>